package initializers

import (
	"geek-cloud-native/chapter04-0925/global"
	"geek-cloud-native/chapter04-0925/pkg/logger"
)

// SetupLogger 初始化日志
func SetupLogger() error {
	var err error
	global.Logger, err = logger.NewConsoleLogger(global.LoggerSetting.LogLevel)
	if err != nil {
		return err
	}
	return nil
}
